import Vue from 'vue'
import App from './App'

import {preLoadImg} from './preLoadImage/index.js'

import pageHead from './components/page-head.vue'
import pageFoot from './components/page-foot.vue'

import store from './store'
import apifn from './api/apiresult' // api请求Fn
Vue.prototype.$apifn = apifn

import pates from '@/api/FN' //方法
Vue.prototype.$oneselfFn = pates

import ENV from './imageFactory/ENV'
Vue.prototype.$ENV = ENV
import imgFn from './imageFactory/img'
Vue.prototype.$imgFn = new imgFn();

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(Element)


Vue.config.productionTip = false

Vue.prototype.$store = store
Vue.prototype.$images = preLoadImg()

Vue.prototype.$backgroundAudioData = {
	playing: false,
	playTime: 0,
	formatedPlayTime: '00:00:00'
}

Vue.component('page-head', pageHead)
Vue.component('page-foot', pageFoot)


App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()
